using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

using YouHP.Model;

namespace YouHP.IDAL
{
    public interface ILogTopic
    {
        #region basic operations
        bool AddLogTopic(LogTopicInfo info);
        bool UpdateLogTopic(LogTopicInfo info);
        bool UpdateLogTopicHits(int logTopicId);
        bool DeleteLogTopic(int[] ids);
        bool DeleteLogTopic(int logTopicId);
        LogTopicInfo GetLogTopicInfo(int id);
        LogTopicInfo GetLogTopicInfo(int userId, int logTopicId);
        #endregion

        #region list and search operations
        List<LogTopicInfo> GetLogTopicList(int pageSize, int pageIndex, out int count);
        List<LogTopicInfo> GetLogTopicList(int pageSize, int pageIndex, int userId, out int count);
        List<LogTopicInfo> GetHottestLogTopicList(int pageSize, int pageIndex, out int count);
        List<LogTopicInfo> GetLogTopicListByDisease(int pageSize, int pageIndex, string condStr, string orderStr, out int count);
        #endregion
    }
}